package com.right.service.impl;

import java.util.List;

import com.right.dao.OrderstatusDao;
import com.right.dao.impl.OrderstatusDaoImpl;
import com.right.entity.Orderstatus;
import com.right.service.OrderstatusService;

public class OrderstatusServiceImpl implements OrderstatusService {
	OrderstatusDao osd=new OrderstatusDaoImpl();
	@Override
	public boolean updateOrderstatus(String typename, int orderstatus) {
		if(typename==null||orderstatus<=0) {
			return false;
		}
		
      return  osd.updateOrderstatus(typename, orderstatus);
		
	}

	@Override
	public List<Orderstatus> checkorderstatus(int orderstatus) {
		
	 return    osd.checkorderstatus(orderstatus);
	}

}
